package com.crs.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class AdminAcceptOrRejectDTO {

    private Long borrowId;

    @NotEmpty(message = "必须选择同意或拒绝")
    @Pattern(regexp = "2|6", message = "状态值只能是2(同意)或6(拒绝)")
    private Integer status;

    @NotEmpty(message = "管理员批注不能为空")
    @Size(min = 2,max = 100,message = "批注要大于2个字,不能超过100字")
    private String adminComment;

    private Long adminId;
}
